<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<%@ include file="../common/static.jsp"%>
</head>
<body class="hold-transition skin-blue fixed sidebar-mini">
	<div class="wrapper">
		<%@ include file="../common/header.jsp"%>
		<%@ include file="../common/asidebar.jsp"%>
		<div class="content-wrapper">
		  <div class="content-header">
		      <h1>
		                       船讯网
		        <small>接口数据查询</small>
		      </h1>
	    	  <ol class="breadcrumb">
		        <li><a href="#"><i class="fa fa-dashboard"></i></a></li>
		        <li><a href="#">数据抓取</a></li>
		        <li class="active">船讯网数据接口</li>
		      </ol>
		    </div>
			<a type="button" class="btn btn-success btn-xs btn-flat" onclick="ship_info()">获取船舶信息</a>
			<a type="button" class="btn btn-success btn-xs btn-flat" onclick="load_excel()">读取excel</a>
			<div class="content">

			</div>
		</div>
	</div>
	<script>

		$(document).ready(function(){

		});

		function load_excel() {
			$.get("<%=cx%>/interf/matcher/load/excel" ,function(data){
				var result = eval('(' + data + ')');
				if(result.code == '0'){
					var datajson = result.data;
					alert(result.msg);
				}
			});
		}

		function ship_info() {
			$.get("<%=cx%>/interf/matcher/shipxy/ship/info" ,function(data){
				var result = eval('(' + data + ')');
				if(result.code == '0'){
					var datajson = result.data;
					alert(result.msg);
				}
			});
		}
	</script>

	<style>
		a.btn{margin: 10px}
	</style>
</body>
</html>
